import turtle

circles = int(input("Input number of circles: "))

h = 500
w = 500

if circles > 10:
    h = 2 * circles * 30 
    w = 2 * circles * 30

turtle.setup(w,h,0.1,0.1)

length = 10

for r in range(0, circles):
    for i in range(4):
        turtle.seth(90 * i)
        turtle.forward(length)
        length += 10

turtle.done() 
